package com.um.jdy.common.activity.entity.vo;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


@Data
public class CouponsAndStationVO extends CouponsVO {

	@ApiModelProperty(value = "站场ID")
	private String deviceStationIds;

	@ApiModelProperty(value = "是否领取优惠券：Yes-是 No-否")
	private String isGet;

	 public List<String> getDeviceStationIdList(){
		 return StrUtil.isEmpty(this.deviceStationIds) ? new ArrayList() : Arrays.asList(this.deviceStationIds.split(","));
	 }

}
